package io.renren.modules.member_score.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.CommonUtils;
import lombok.Data;

import java.io.Serializable;

/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-24 17:04:08
 */
@Data
@TableName("v9_member_score")
public class V9MemberScoreEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	private Integer id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	public String getCreateTimeStr() {
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(createTime));
	}

	public void setCreateTimeStr(String createTimeStr) {
		this.createTimeStr = createTimeStr;
	}

	public Integer getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Integer expireTime) {
		this.expireTime = expireTime;
	}

	public String getExpireTimeStr() {
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(expireTime));
	}

	public void setExpireTimeStr(String expireTimeStr) {
		this.expireTimeStr = expireTimeStr;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSurplusNum() {
		return surplusNum;
	}

	public void setSurplusNum(Integer surplusNum) {
		this.surplusNum = surplusNum;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * 会员码
	 */
	private Integer userid;
	/**
	 * 添加时间
	 */
	private Integer createTime;
	private transient String createTimeStr;
	/**
	 * 过期时间
	 */
	private Integer expireTime;
	private transient String expireTimeStr;
	/**
	 * 总数量
	 */
	private Integer num;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 剩余数量
	 */
	private Integer surplusNum;
	/**
	 * 备注
	 */
	private String remark;

	private transient  String username;

}
